package com.musicmall.dao;

import com.musicmall.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;


public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int checkUserName(String username);

    User selectLogin(@Param("username")String username, @Param("password") String password);

    int checkUsername(String username);

    int checkEmail(String email);

    int checkPhone(String phone);

//    int checkLogin(@Param("userName")String userName,@Param("password")String password);
}